<extend name="Public/base"/>
<block name="style">
    <link rel="stylesheet" href="__STATIC__/plugins/data-tables/DT_bootstrap.css" />
</block>
<block name="body">

    <div class="row">
        <div class="col-md-12">
            <!-- BEGIN EXAMPLE TABLE PORTLET-->
            <div class="portlet box green">
                <div class="portlet-title">
                    <div class="caption"><i class="fa fa-globe"></i>课程表信息</div>
                    <div class="tools">
                        <a href="javascript:;" class="collapse"></a>
                        <a href="#portlet-config" data-toggle="modal" class="config"></a>
                        <a href="javascript:;" class="reload"></a>
                    </div>
                </div>
                <div class="portlet-body">
                    <div class="table-toolbar">
                        <div class="btn-group">
                            <a class="btn green" href="{:U('addhead')}">新 增</a>
                        </div>
                    </div>
                    <table class="table table-striped table-bordered table-hover" id="sample">
                        <thead>
                        <tr>
                            <th>ID</th>
                            <th>名称</th>
                            <th>排序</th>
                            <th>备注</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody>
                          <volist name="_list" id="vo">
                            <tr class="odd gradeX">
                                <td>{$vo.hid}</td>
                                <td>{$vo.title}</td>
                                <td>{$vo.sort}</td>
                                <td>{$vo.remark}</td>
                                <td>
                                    <!--<a href="{:U('addhead?hid='.$vo['hid'])}">编辑</a>-->
                                    <!--<a class="confirm ajax-get" href="{:U('del?hid='.$vo['hid'])}">删除</a>-->
                                </td>
                            </tr>
                          </volist>
                        </tbody>
                    </table>

                    <div class="page">
                        {$_page}
                    </div>
                </div>
            </div>
            <!-- END EXAMPLE TABLE PORTLET-->
        </div>
    </div>

</block>

<block name="script">
    <script type="text/javascript" src="__STATIC__/plugins/data-tables/jquery.dataTables.js"></script>
    <script type="text/javascript" src="__STATIC__/plugins/data-tables/DT_bootstrap.js"></script>
    <script src="__STATIC__/scripts/app.js"></script>
    <script src="__STATIC__/scripts/table-managed.js"></script>
    <script>

        jQuery(document).ready(function() {
            App.init();
            TableManaged.init();

        });

    </script>
</block>
